#include "No7pch.h"
#include "VertexArray.h"
#include "No7/Core/Renderer/Renderer.h"
#include "No7/Core/Platform/OpenGL/OpenGLVertexArray.h"
#include "No7/Core/CoreMacros.h"

nmspc::VertexArray* nmspc::VertexArray::create()
{
	switch (nmspc::Renderer::getAPI())
	{
	case nmspc::RendererAPI::API::None:
		NO7_CORE_ASSERT(false, "RendererAPI::None is currently not supported!");
		return nullptr;
	case nmspc::RendererAPI::API::OpenGL:
		return new nmspc::OpenGLVertexArray();
	}
	NO7_CORE_ASSERT(false, "Unknown RendererAPI!");
	return nullptr;
}
